package com.coreJava.testio.socket2;

import java.io.*;
import java.net.ServerSocket;
import java.net.Socket;

/**
 * 作者: LCG
 * 日期: 2019/9/7 15:33
 * 描述:
 */
public class TestServer {

    public static void main(String[] args) throws IOException {

         ServerSocket serverSocket=new ServerSocket(9999);


         Thread thread=new Thread(new SocketRunable2(serverSocket));
         thread.start();

         Thread thread2=new Thread(new SocketRunable2(serverSocket));
         thread2.start();

         Thread thread3=new Thread(new SocketRunable2(serverSocket));
         thread3.start();

        System.out.println("============");
    }

}
